import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ZhongJinTao
 * Date: 2024-03-03
 * Time: 15:04
 */
public class IODemo8 {
    public static void main(String[] args) {
        File src = new File("./test.txt");
        File dest = new File("./test2.txt");
        boolean ret = src.renameTo(dest);//进⾏⽂件改名，也可以视为我们平时的剪切、粘贴操作
        System.out.println(ret);
    }
}
